﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace KidsProtector.BusinessManagement
{
    public class User
    {
        private DataAccess.User Access;

        public User()
        {
            Access = new DataAccess.User();
        }

        public bool CreateUser(string name, string mail, string pass, DateTime birthday)
        {
            return Access.CreateUser(name, mail, pass, birthday);
        }

        public bool CreateUser(DataAccess.T_User user)
        {
            return Access.CreateUser(user);
        }

        public bool ModifyUser(long id, string name, string mail, string pass, DateTime birthday)
        {
            return Access.ModifyUser(id, name, mail, pass, birthday);
        }
        public DataAccess.T_User Authentification(string mail, string pass)
        {
            return Access.Authentification(mail, pass);
        }
        public List<DataAccess.T_User> GetList()
        {
            return Access.GetList();
        }
        public string GetMail(long idUser)
        {
            return Access.GetMail(idUser);
        }
    }
}
